package user.model;

/**
 * 用户实体
 * @author 摘星者
 *
 */
public class User {
	private String id; //学号
	private String userName;//用户名
	private String password;//密码
	private int userId;
	
	public User() {
		super();
		// TODO 自动生成的构造函数存根
	}
	
	public User(String userName, String password) {
		super();
		this.userName = userName;
		this.password = password;
	}
	
	
	public User(String id, String userName, String password) {
		super();
		this.id = id;
		this.userName = userName;
		this.password = password;
	}

	public User(String id, String userName, String password, int userId) {
		super();
		this.id = id;
		this.userName = userName;
		this.password = password;
		this.userId = userId;
	}

	public User(String id) {
		super();
		this.id = id;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", userName=" + userName + ", password=" + password + ", userId=" + userId + "]";
	}
	
	
}
